package com.booksys.examination.entity;

import java.util.List;

/**
 * @author Administrator
 * @date 2019-08-13 17:34
 */
public class PageBean<T> {

    private int currentPage;//当前页
    private int totalCount;//总记录数
    private int pageSize;//每页显示条数
    private int totalPage;//总页数
    private List<T> list ;//每页要显示的数据
    private int start;//开始
    private int end;//结束

    public PageBean(int currentPage, int totalCount, int pageSize, int totalPage, List<T> list, int start, int end) {
        this.currentPage = currentPage;
        this.totalCount = totalCount;
        this.pageSize = pageSize;
        this.totalPage = totalPage;
        this.list = list;
        this.start = start;
        this.end = end;
    }

    public PageBean() {
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getEnd() {
        return end;
    }

    public void setEnd(int end) {
        this.end = end;
    }

    @Override
    public String toString() {
        return "PageBean{" +
                "currentPage=" + currentPage +
                ", totalCount=" + totalCount +
                ", pageSize=" + pageSize +
                ", totalPage=" + totalPage +
                ", list=" + list +
                ", start=" + start +
                ", end=" + end +
                '}';
    }
}
